<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
<spring:url value="/fantasy-league/" var="league_url" />
<script>
$(function() {
	addSubMenuItem("${league.name}", "${league_url}${league.id}");
	addSubMenuItem("My Team", "#");
	addSubMenuItem("Players", "${league_url}${league.id}/players");
});
</script>
</head>
<body>

<h2>Player List</h2>

	<table class="gridtable">
  	<thead>
  		<tr>
  		<th>Player ID</th>
  		<th>Player Name</th>
  		</tr>
  	</thead>
  	<tbody>
		<c:forEach var="player" items="${players}">
			<tr>
	  		<td><c:out value="${player.id}"/></td>
	  		<td><c:out value="${player.name}"/></td>
	  		</tr>
		</c:forEach>
	</tbody>
  	</table>

</body>
</html>